package com.sailor.pojo;

import com.sailor.annotation.SensitiveData;
import com.sailor.annotation.SensitiveField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SensitiveData
public class User {

    private int id;
//    @NotEmpty(message = "名字禁止为空")
    private String name;
    private String pwd;
    private String perms;
    @SensitiveField
    private String phone;
    @Valid
    @NotEmpty(message = "什么情况")
    //@NotNull(message = "什么情况")
    List<Long> idList;
}
